package com.xinyue.user.dao;

import com.xinyue.user.pojo.News;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface NewsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(News record);

    News selectByPrimaryKey(Integer id);

    List<News> selectAll(@Param("count")Integer count,@Param("city")String city);

    int updateByPrimaryKey(News record);
    //修改点赞数
    int updateLikes(Integer id);
    
    List<News> selectBysex(@Param("page")Integer page,@Param("sex")Integer sex);
}